package run.vue.iblog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import run.vue.iblog.entity.Category;

import java.util.List;

@Repository
public interface CategoryMapper extends BaseMapper<Category> {
    // 获取所有分类
    List<Category> findAll();

    // 获得具体分类
    Category get(int id);
}
